<template>
  <div ref="border6" class="border-wrap">
    <svg class="dv-border-svg-container" :width="width" :height="height">
      <path
        :fill="bgColor"
        :stroke="borderColor[0]"
        :d="`
          M 5 20 L 5 10 L 12 3  L 60 3 L 68 10
          L ${width - 20} 10 L ${width - 5} 25
          L ${width - 5} ${height - 5} L 20 ${height - 5}
          L 5 ${height - 20} L 5 20
        `"
      />

      <path
        fill="transparent"
        stroke-width="3"
        stroke-linecap="round"
        stroke-dasharray="10, 5"
        :stroke="borderColor[0]"
        :d="`M 16 9 L 61 9`"
      />

      <path
        fill="transparent"
        :stroke="borderColor[1]"
        :d="`M 5 20 L 5 10 L 12 3  L 60 3 L 68 10`"
      />

      <path
        fill="transparent"
        :stroke="borderColor[1]"
        :d="`M ${width - 5} ${height - 30} L ${width - 5} ${height - 5} L ${width - 30} ${height - 5}`"
      />
    </svg>
  </div>
</template>

<script>
export default {
  props: {
    bgColor: {
      type: String,
      default: () => 'transparent'
    },
    borderColor: {
      type: Array,
      default: () => ['#6586ec', '#2cf7fe']
    },
    width: {
      type: Number,
      default: () => 0
    },
    height: {
      type: Number,
      default: () => 0
    }
  }
}
</script>

<style scoped="scoped" lang="less">
  .dv-border-svg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;

    polyline {
      fill: none;
    }
  }
 .dv-reverse {
    transform: rotate(180deg);
  }

 .sw1 {
   stroke-width: 1;
 }

 .sw3 {
   stroke-width: 3px;
   stroke-linecap: round;
 }

 .dv-bb4-line-1 {
    stroke-width: 1;
 }

 .dv-bb4-line-2 {
    stroke-width: 1;
 }

 .dv-bb4-line-3 {
   stroke-width: 3px;
   stroke-linecap: round;
 }

 .dv-bb4-line-4 {
   stroke-width: 3px;
   stroke-linecap: round;
 }

 .dv-bb4-line-5 {
    stroke-width: 1;
 }

 .dv-bb4-line-6 {
    stroke-width: 1;
 }

 .dv-bb4-line-7 {
    stroke-width: 1;
 }

 .dv-bb4-line-8 {
   stroke-width: 3px;
   stroke-linecap: round;
 }

 .dv-bb4-line-9 {
   stroke-width: 3px;
   stroke-linecap: round;
   stroke-dasharray: 100 250;
 }

 .dv-bb4-line-10 {
    stroke-width: 1;
   stroke-dasharray: 80 270;
 }
</style>
